package org.example.domain;

import com.baomidou.mybatisplus.annotation.*;
import jdk.jfr.DataAmount;


@TableName("users")
public class user {
    @TableId
    private Integer userid;
    private String username;
    @TableField(value="password",select=false)
    private String password;
//    @TableField(exist = false)
//    private Integer online;
//    @Version
//    private Integer version;
//    public Integer getVersion() {
//        return version;
//    }
//
//    public void setVersion(Integer version) {
//        this.version = version;
//    }
//
//
//    public Integer getOnline() {
//        return online;
//    }
//
//    public void setOnline(Integer online) {
//        this.online = online;
//    }


    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "user{" +
                "userid=" + userid +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
